import { shallowRef } from "vue";

import ModbusRTU from "./formChild/ModbusRTU.vue";
// import MQTT from "./formChild/MQTT.vue";
// import ModbusTCP from "./formChild/ModbusTCP.vue";
// import OPCUA from "./formChild/OPCUA.vue";
import HTTP from "./formChild/HTTP.vue";
// import HTTPS from "./formChild/HTTPS.vue";
import PLC485 from "./formChild/PLC(485).vue";
import CAN from "./formChild/CAN.vue";
// import WIFIModbus from "./formChild/WIFI(Modbus).vue";
// import WIFIMQTT from "./formChild/WIFI(MQTT).vue";
import NB from "./formChild/NB.vue";
import FourG from "./formChild/FourG.vue";
import Lora from "./formChild/Lora.vue";

const componentList = shallowRef([
  {
    key: "ModbusRTU",
    name: "ModbusRTU",
    show: true,
    component: ModbusRTU
  },
  // {
  //   key: "MQTT",
  //   name: "MQTT",
  //   show: true,
  //   component: MQTT
  // },
  {
    key: "ModbusTCP",
    name: "ModbusTCP",
    show: true,
    component: null
  },
  {
    key: "MQTT_SN",
    name: "MQTT_SN",
    show: true,
    component: null
  },
  // {
  //   key: "OPCUA",
  //   name: "OPCUA",
  //   show: true,
  //   component: OPCUA
  // },
  {
    key: "HTTP",
    name: "HTTP",
    show: true,
    component: HTTP
  },
  // {
  //   key: "HTTPS",
  //   name: "HTTPS",
  //   show: true,
  //   component: HTTPS
  // },
  {
    key: "PLC(RS485)",
    name: "PLC(RS485)",
    show: true,
    component: PLC485
  },
  {
    key: "CAN",
    name: "CAN",
    show: true,
    component: CAN
  },
  {
    key: "NB-IOT",
    name: "NB-IOT",
    show: true,
    component: NB
  },
  {
    key: "LoRa(Modbus)",
    name: "LoRa(Modbus)",
    show: true,
    component: null
  },
  {
    key: "Lora",
    name: "Lora",
    show: true,
    component: Lora
  },

  {
    key: "4G",
    name: "4G",
    show: true,
    component: FourG
  },

  {
    key: "CAT1",
    name: "CAT1",
    show: true,
    component: FourG
  },
  {
    key: "WIFI(Modbus)",
    name: "WIFI(Modbus)",
    show: true,
    component: null
  },
  // {
  //   key: "WIFI",
  //   name: "WIFI",
  //   show: true,
  //   component: WIFIMQTT
  // },
  {
    key: "OPCDA",
    name: "OPCDA",
    show: true,
    component: null
  },
  {
    key: "ODBC",
    name: "ODBC",
    show: true,
    component: null
  },
  {
    key: "JDBC",
    name: "JDBC",
    show: true,
    component: null
  },
  {
    key: "RESP",
    name: "RESP",
    show: true,
    component: null
  },
  {
    key: "Thrift",
    name: "Thrift",
    show: true,
    component: null
  },
  {
    key: "HadoopRPC",
    name: "HadoopRPC",
    show: true,
    component: null
  },
  {
    key: "MongonDB",
    name: "MongonDB",
    show: true,
    component: null
  },
  {
    key: "FTP",
    name: "FTP",
    show: true,
    component: null
  },
  {
    key: "RS232",
    name: "RS232",
    show: true,
    component: PLC485
  },
  {
    key: "USB",
    name: "USB",
    show: true,
    component: null
  },
  {
    key: "Websocket",
    name: "Websocket",
    show: true,
    component: null
  },
  {
    key: "MySQL",
    name: "MySQL",
    show: true,
    component: null
  },
  {
    key: "Delta",
    name: "Delta",
    show: true,
    component: null
  },
  {
    key: "NFS",
    name: "NFS",
    show: true,
    component: null
  },
  {
    key: "KAFKA",
    name: "KAFKA",
    show: true,
    component: null
  },
  {
    key: "MINIO",
    name: "MINIO",
    show: true,
    component: null
  },
  {
    key: "restful",
    name: "restful",
    show: true,
    component: null
  },
  {
    key: "redis",
    name: "redis",
    show: true,
    component: null
  },
  {
    key: "soap",
    name: "soap",
    show: true,
    component: null
  },
  {
    key: "rpsp",
    name: "rpsp",
    show: true,
    component: null
  }
]);

export default componentList;
